//
//  WBNavigationController.swift
//  WeiBo
//
//  Created by archermind on 2017/1/13.
//  Copyright © 2017年 Archermind. All rights reserved.
//

import UIKit

class WBNavigationController: UINavigationController {

   
    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        
        if childViewControllers.count > 0 {
            
            viewController.hidesBottomBarWhenPushed = true
            
        }
        
        super.pushViewController(viewController, animated: animated)
        
        
    }
    
}
